<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">店员名称</label>
            <div class="layui-input-inline">
                <select lay-search name="clerks_id">
                    <option value="">请选择店员名称</option>
                    {foreach $clerksList as $kk => $vv}
                    <option value="{$vv.id}" {if input('get.clerks_id') eq $vv.id} selected {/if}>{$vv.name}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">门店名称</label>
            <div class="layui-input-inline">
                <select lay-search name="shop_id">
                    <option value="">请选择门店名称</option>
                    {foreach $shopList as $k => $v}
                    <option value="{$v.id}" {if input('get.shop_id') eq $v.id} selected {/if}>{$v.name}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">考勤类型</label>
            <div class="layui-input-inline">
                <select lay-search name="type">
                    <option value="">请选择考勤类型</option>
                    <option value="1" {if input('get.type') eq 1} selected {/if}>上班</option>
                    <option value="2" {if input('get.type') eq 2} selected {/if}>下班</option>
                </select>
            </div>
        </div>

        <!--<div class="layui-form-item layui-inline">-->
            <!--<label class="layui-form-label">考勤状态</label>-->
            <!--<div class="layui-input-inline">-->
                <!--<select lay-search name="kq_status">-->
                    <!--<option value="">请选择状态</option>-->
                    <!--<option value="1" {if input('get.kq_status') eq 1} selected {/if}>正常</option>-->
                    <!--<option value="2" {if input('get.kq_status') eq 2} selected {/if}>迟到</option>-->
                    <!--<option value="3" {if input('get.kq_status') eq 3} selected {/if}>早退</option>-->
                <!--</select>-->
            <!--</div>-->
        <!--</div>-->

        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
    </form>
    <script>form.render()</script>
</fieldset>